package com.atguigu.gulimall.product.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties("gulimall.thread")
@Component
@Data
public class ThreadPoolProperties {

    private int corePoolSize = 1;

    private int maxPoolSize = 20;

    private int keepAliveSeconds = 60;
}
